# +~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~ #  
#
# title:  Create conda environments and install required python packages	
# author: Hauke Licht
# note:   If you are not on MacOS with ARM/M1, you can omit the
#          `CONDA_SUBDIR=... ` part before `conda`
#
# +~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~ #


# conda envrionment for using LASER
CONDA_SUBDIR=osx-64 conda create -n laser_embedding python=3.8 pip
conda activate laser_embedding
pip install -r laser_requirements.txt
python3 -m laserembeddings download-models
conda deactivate

# conda envrionment for (NLP-based) machine learning
CONDA_SUBDIR=osx-64 conda create -n machine_learning python=3.8 pip
conda activate machine_learning
pip install -r ml_requirements.txt
python3 -m laserembedding download-model
conda deactivate

# conda envrionment for XLM-T finetuning and inference
CONDA_SUBDIR=osx-arm64 conda create -n xlmt python=3.10 pip
conda activate xlmt
pip install -r xlmt_requirements.txt
conda deactivate
